<template>
		
	<div>
		<web-view :src="src"></web-view>
	</div>
</template>
<script>
	import configUrl from '@/common/config.js'

	import subjectiveLiveApi from '@/api/subjectiveLive.js'
	let _this
	export default {
		components: {
		},
		onLoad(query) {
			_this = this;
			_this.initData(query)
		},
		data() {
			return {
				showLive:false,
				src:''
			};
		},
		computed: {
		
		},

		methods: {
			initData(query){
				let {id} = query
				let {usercode,userxm} = uni.getStorageSync('user')
				
				_this.src = `${configUrl.liveUrl}subjectLive?id=${id}&usercode=${usercode}&userxm=${userxm}`
				// _this.src = `http://49.4.68.157/subjectLive?id=${id}&usercode=${usercode}&userxm=${userxm}`
				// _this.src = `http://localhost/subjectLive?id=${id}&usercode=${usercode}&userxm=${userxm}`
			
				console.log(usercode)
				
			},
		},

		onReady() {}
	};
</script>
<style>

	div,
	scroll-view,
	swiper {
		box-sizing: border-box;
	}

	div {
		font-size: 28upx;
		background-color: #f1f1f1;
	}
	.live{
		width: 100%;
		height: 500upx;
	}
	.swiper {
		height: 140upx;
	}

	.cu-bar {
		display: flex;
		position: relative;
		align-items: center;
		min-height: 100upx;
		justify-content: space-between;
	}

	.cu-bar .action {
		display: flex;
		align-items: center;
		height: 100%;
		justify-content: center;
		max-width: 100%;
		background-color: #ffffff;
	}

	.cu-bar .action:first-child {
		margin-left: 30upx;
		font-size: 30upx;
	}

	.solid,
	.solid-bottom {
		position: relative;
	}

	.solid::after,
	.solid-bottom::after {
		content: " ";
		width: 200%;
		height: 200%;
		position: absolute;
		top: 0;
		left: 0;
		border-radius: inherit;
		transform: scale(0.5);
		transform-origin: 0 0;
		pointer-events: none;
		box-sizing: border-box;
	}

	.solid::after {
		border: 1upx solid rgba(0, 0, 0, 0.1);
	}

	.solid-bottom::after {
		border-bottom: 1upx solid rgba(0, 0, 0, 0.1);
	}

	.text-orange {
		color: #f37b1d
	}
	.text-white  {
		color: #ffffff
	}
	.text-black {
		color: #333333;
	}

	.bg-white {
		background-color: #ffffff;
	}
	.bg-orange{
		background-color: #f37b1d;
	}

	.padding {
		padding: 30upx;
	}

	.margin {
		margin: 30upx;
	}

	.margin-top {
		margin-top: 30upx;
	}

	.text-center {
		text-align: center;
	}
</style>
